<?php
namespace catchAdmin\basics\request;

use catchAdmin\basics\model\BusinessType;
use catcher\base\CatchRequest;

class BusinessTypeCreateRequest extends CatchRequest
{

    protected function rules(): array
    {
        // TODO: Implement rules() method.
        return [
//            'unit_name' => 'require|unique:db_unit,unit_name^tenant_id'
            'name|业务名称' => 'require|unique:'.BusinessType::class,
            'abbreviation|简称' => 'require|unique:'.BusinessType::class,
        ];
    }

    protected function message()
    {
        // TODO: Implement message() method.
    }
}